/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.yandex.skipass;

/**
 *
 * @author Brothers
 */
public class Day extends Season {

    private int topTime;
    private int bottomTime;

    public Day() {
        this.bottomTime = -1;
        this.topTime = -1;
    }

    public void setDays(int days, int time) {
        this.setNumberDay(days);
        this.setTime(time);
    }

    protected void setTime(int time) {

        this.topTime = SkiPass.TimeEnum.values()[time].getUpTime();
        this.bottomTime = SkiPass.TimeEnum.values()[time].getDownTime();

    }

    protected int getTopTime() {
        return this.topTime;
    }

    protected int getBottomTime() {
        return this.bottomTime;
    }

}
